package his.controller;

import his.vo.scheduleVo;
import org.example.his.common.api.CommonResponse;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/admin/schedule/")
public class ScheduleController {

    /**
     * 获取数据
     */
    @GetMapping("/getSchedule")
    public CommonResponse<List<scheduleVo>>  getSchedule(){
        List<scheduleVo> scheduleVos = new ArrayList<>();
        scheduleVo scheduleVo = new scheduleVo();
        scheduleVo.setDeptName("心血管");
        scheduleVos.add(scheduleVo);
        return CommonResponse.createForSuccess(scheduleVos);
    }
}
